package BLC

import "fmt"

type Wallets struct {
	Wallets map[string]*Wallet
}

//创建钱包集合
func NewWallets() *Wallets  {

	Wallets := &Wallets{}
	Wallets.Wallets = make(map[string]*Wallet)
	return Wallets
}

//创建一个钱包
func (w *Wallets) CreateNewWallet()  {

	wallet := NewWallet()
	fmt.Printf("wallet address: %s\n",wallet.GetAddress())
	w.Wallets[string(wallet.GetAddress())] = wallet
}

